package com.neu.gulimall.order.feign;

import com.neu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "gulimall-product")
public interface ProductFeignService {

    @GetMapping("/product/spuinfo/skuId/{id}")
    R getSpuInfoBySkuId(@PathVariable(value = "id")Long skuId);

    @GetMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable(value = "skuId") Long skuId);

}
